from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

driver = webdriver.Edge()
driver.get('http://10.59.9.12:7001/')
driver.maximize_window()
sleep(2)
yuansu = driver.find_element(By.XPATH,'/html/body/div[3]/div[2]/ul/li[1]/a')

# ①　文本值
print(yuansu.text)
# ②　获取元素的具体属性值（比如class）
print(yuansu.get_attribute('class'))
# ③　获取元素的宽高
print(yuansu.size)
# ④　获取元素的坐标值
print(yuansu.location)
# ⑤　打印元素是否可用
print(yuansu.is_enabled())
# ⑥　打印元素是否显示
print(yuansu.is_displayed())
# ⑦　打印元素是否被选中
print(yuansu.is_selected())